// API配置文件
const API_BASE_URL = 'http://localhost:8080';
const WS_BASE_URL = 'ws://localhost:8080';

export default {
  // 基础URL
  baseUrl: API_BASE_URL,
  wsBaseUrl: WS_BASE_URL,
  
  // 认证相关
  auth: {
    login: `${API_BASE_URL}/login`,
    captchaImage: `${API_BASE_URL}/captchaImage`,
    captchaPhone: `${API_BASE_URL}/login/captchaPhone`,
    loginPhone: `${API_BASE_URL}/login/phone`,
    getInfo: `${API_BASE_URL}/getInfo`
  },
  
  // 用户相关
  user: {
    profile: `${API_BASE_URL}/system/user/profile`,
    avatar: `${API_BASE_URL}/system/user/profile/avatar`,
    privacy: `${API_BASE_URL}/user/privacy/update`
  },
  
  // 聊天相关
  chat: {
    websocket: `${WS_BASE_URL}/websocket/chat/`,
    customerServiceWs: `${WS_BASE_URL}/ws/customer-service`,
    serviceList: `${API_BASE_URL}/api/chat/service-list`,
    serviceInfo: `${API_BASE_URL}/api/chat/service-info`,
    history: `${API_BASE_URL}/api/chat/history`,
    send: `${API_BASE_URL}/api/chat/send`,
    markRead: `${API_BASE_URL}/api/chat/mark-read`,
    upload: `${API_BASE_URL}/api/chat/upload`,
    counts: `${API_BASE_URL}/api/chat/counts`,
    latest: `${API_BASE_URL}/api/chat/latest`,
    search: `${API_BASE_URL}/api/chat/search`,
    staff: `${API_BASE_URL}/api/chat/staff`,
    read: `${API_BASE_URL}/api/chat/read`,
    new: `${API_BASE_URL}/api/chat/new`,
    community: `${API_BASE_URL}/api/chat/community`,
    activity: `${API_BASE_URL}/api/chat/activity`,
    customerService: `${API_BASE_URL}/api/chat/customer-service`
  },
  
  // 订单相关
  order: {
    list: `${API_BASE_URL}/order/orders/list`,
    detail: `${API_BASE_URL}/order/orders/`,
    notification: `${API_BASE_URL}/message/sysMessage/orderDetail/`
  },
  
  // 支付相关
  payment: {
    create: `${API_BASE_URL}/pay/alipay/create`,
    query: `${API_BASE_URL}/pay/alipay/query`,
    notify: `${API_BASE_URL}/pay/alipay/notify`,
    return: `${API_BASE_URL}/pay/alipay/return`,
    status: `${API_BASE_URL}/pay/status`
  },
  
  // 预约相关
  appointment: {
    create: `${API_BASE_URL}/appointment/create`
  },
  
  // 服务相关
  service: {
    providerList: `${API_BASE_URL}/system/provider/list`,
    recommendedList: `${API_BASE_URL}/system/provider/recommended`,
    serviceTypes: `${API_BASE_URL}/system/serviceType/list`,
    availableTimeSlots: `${API_BASE_URL}/system/reservation/availableTimeSlots`
  },
  
  // 系统消息相关
  system: {
    agreeAunt: `${API_BASE_URL}/message/sysMessage/agreeAunt`
  },
  
  // 活动相关
  activity: {
    join: `${API_BASE_URL}/api/activity/join`
  },
  
  // 上传
  upload: `${API_BASE_URL}/api/upload`
}; 